package com.ww.bennyhuo.ch04.js

//interface AsyncScope
//
//suspend fun <T> AsyncScope.await(block: () -> Call<T>) = suspendCoroutine<T> { continuation ->
//    val call = block()
//    call.enqueue(object: Callback<T> {
//        override fun onFailure(throwable: Throwable?) {
//            TODO("Not yet implemented")
//        }
//
//        override fun onResponse(call: Call<T>, response: Response<T>) {
//
//        }
//    })
//}